package com.cr.manager.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cr.common.annotation.Excel;
import com.cr.common.core.domain.BaseEntity;

/**
 * 商品管理对象 yt_goods
 * 
 * @author lms
 * @date 2025-03-05
 */
public class YtGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品类别 */
    @Excel(name = "商品类别")
    private String category;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 库存量 */
    @Excel(name = "库存量")
    private Integer number;

    /** 销量 */
    @Excel(name = "销量")
    private Long xl;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 商品介绍 */
    @Excel(name = "商品介绍")
    private String introduce;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNumber(Integer number) 
    {
        this.number = number;
    }

    public Integer getNumber() 
    {
        return number;
    }
    public void setXl(Long xl) 
    {
        this.xl = xl;
    }

    public Long getXl() 
    {
        return xl;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("category", getCategory())
            .append("price", getPrice())
            .append("number", getNumber())
            .append("xl", getXl())
            .append("img", getImg())
            .append("introduce", getIntroduce())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
